package com.castle.fortress.admin.orders.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.orders.entity.GoodsOrderItemEntity;
import com.castle.fortress.admin.orders.dto.GoodsOrderItemDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 订单详情 服务类
 *
 * @author Mgg
 * @since 2023-01-13
 */
public interface GoodsOrderItemService extends IService<GoodsOrderItemEntity> {

    /**
     * 分页展示订单详情列表
     * @param page
     * @param goodsOrderItemDto
     * @return
     */
    IPage<GoodsOrderItemDto> pageGoodsOrderItem(Page<GoodsOrderItemDto> page, GoodsOrderItemDto goodsOrderItemDto);

    /**
    * 分页展示订单详情扩展列表
    * @param page
    * @param goodsOrderItemDto
    * @return
    */
    IPage<GoodsOrderItemDto> pageGoodsOrderItemExtends(Page<GoodsOrderItemDto> page, GoodsOrderItemDto goodsOrderItemDto);
    /**
    * 订单详情扩展详情
    * @param id 订单详情id
    * @return
    */
    GoodsOrderItemDto getByIdExtends(Long id);

    /**
     * 展示订单详情列表
     * @param goodsOrderItemDto
     * @return
     */
    List<GoodsOrderItemDto> listGoodsOrderItem(GoodsOrderItemDto goodsOrderItemDto);

}
